package com.zf.spring.microservice.uaa.repository;

import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;

import com.zf.spring.microservice.uaa.domain.User;

@RepositoryRestResource(collectionResourceRel = "users", path = "users")
public interface UserRepository  extends PagingAndSortingRepository<User, Long>{
	
	User findByPhoneAndPassword(String phone, String password);
	
	User findByEmailAndPassword(String email, String password);
	
	User findByAccountIdAndPassword(Long accountId, String password);
}
